#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  x_product_pairs.py
#       Author @  Huoty
#  Create date @  2015-10-21 10:44:54
#  Description @  
# *************************************************************



# Script starts from here

rows = [1, 2, 3, 17]

def cols(): # example of simple generator 
    yield 56  
    yield 2  
    yield 1 
    
x_product_pairs = ((i, j) for i in rows for j in cols())

for pair in x_product_pairs:
	print pair
